package kr.ac.kaist.idb.csnql.clause;

import java.io.Serializable;

/**
 * @brief WITHIN clause class
 * @author Jongheon Park (korex527@kaist.ac.kr)
 */
public class SNQLWithin implements Serializable
{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5848940017651650701L;
	/** @brief The percentage. */
	private int percentage;

    /**
     * @brief Instantiates a new SNQLWithin with percentage
     *
     * @param percentage the percentage
     */
    public SNQLWithin(int percentage)
    {
        this.percentage = percentage;
    }
    
    /**
     * @brief Instantiates a new SNQLWithin
     */
    public SNQLWithin() 
    { 
    	percentage = 100;
    }
    
    /**
     * @param percentage New percentage value
     * @brief Set the percentage
     */
    public void setPercentage(int percentage)
    {
    	this.percentage = percentage;
    }
    
    /**
     * @return the percentage value
     * @brief Get the percentage
     */
    public int getPercentage()
    {
    	return percentage;
    }
}
